package com.linq.cool.beauty.vo;

import com.linq.cool.common.core.utils.annotation.TreeEntity;
import com.linq.cool.common.core.utils.annotation.TreeField;
import com.linq.cool.common.core.utils.enums.FieldType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: yqlin
 * @Date: 2021/2/5 13:49
 * @Description: 美容项目产品分类
 * @Version: 1.0.0
 */
@TreeEntity
@Data
@Accessors(chain = true)
public class BeautyProductCategoryTreeVO implements Serializable {
    /**
     * 分类Id
     */
    @TreeField(fieldType = FieldType.ID)
    private Long id;

    /**
     * 图标
     */
    private String icon;

    /**
     * 父级id(0代表顶级分类)
     */
    @TreeField(fieldType = FieldType.PID)
    private Long parentId;

    /**
     * 分类名称
     */

    private String name;

    /**
     * 分类级别(1级,2级,3级)
     */
    private Integer level;

    /**
     * 是否显示在导航栏(0否 1是)
     */
    private Integer navStatus;

    /**
     * 排序
     */
    private Integer sort;

    @TreeField(fieldType = FieldType.CHILD)
    private List<BeautyProductBrandVO> children = new ArrayList<>(0);
}